package com.sy.bean.management;

import com.sy.common.valid.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Pattern;

@ApiModel("修改密码")
@Data
public class UpdatePass {
    @ApiModelProperty(value = "用户名")
    String username;
    @ApiModelProperty(value = "手机号", required = true)
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "请输入正确的手机号")
    String phone;
    @ApiModelProperty(value = "旧密码", required = true)
    String oldPass;
    @ApiModelProperty(value = "新密码", required = true)
    String password;
}
